home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / AEA / Source / Includes / AEAHandler.hh < prev    next >
Encoding:
Text File  |  2000-06-24  |  953 b   |  36 lines

  1. /*    =============
  2.  *    AEAHandler.hh
  3.  *    =============
  4.  */
  5.  
  6. #pragma once
  7.  
  8. #include <AppleEvents.h>
  9. #include <Errors.h>
  10.  
  11. #include "NGLList.hh"
  12.  
  13. class AEADescAppleEvent;
  14.  
  15. class AEAHandler {
  16. // Member functions
  17. public:
  18.     AEAHandler(AEEventClass inEventClass, AEEventID inEventID);
  19.     virtual ~AEAHandler();
  20.     
  21.     virtual void HandleEvent(const AEADescAppleEvent &inAppleEvent, AEADescAppleEvent &outReply);
  22.     virtual void HandleEventSelf(const AEADescAppleEvent &inAppleEvent, AEADescAppleEvent &outReply);
  23.     virtual void TouchParameters(const AEADescAppleEvent &inAppleEvent);
  24.     virtual void MakeNoteToTouchParam(AEKeyword inParamKey);
  25. protected:
  26.     static pascal OSErr GenericAEHandler(const AppleEvent *inAppleEvent, AppleEvent *outReply, long int inRefCon);
  27.     static AEEventHandlerUPP sAEEventHandlerUPP;
  28.     virtual void Install();
  29.     virtual void Remove();
  30. // Data members
  31. protected:
  32.     AEEventClass mEventClass;
  33.     AEEventID mEventID;
  34.     NGLList<AEKeyword> mParamsToTouch;
  35. };
  36.